package io.dshubs.archives.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.dshubs.commons.mybatis.entity.BaseTenantEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 档号配置规则
 * </p>
 *
 * @author tan
 * @since 2021-08-16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("archive_base_rule")
public class ArchiveBaseRule extends BaseTenantEntity {

    private static final long serialVersionUID = 1L;


    @TableField("rule_name")
    @ApiModelProperty("规则名称")
    private String ruleName;


    @TableField("archive_id")
    @ApiModelProperty("全宗id")
    private Long archiveId;


    @TableField("value")
    @ApiModelProperty("值")
    private String value;


    @TableField("label")
    @ApiModelProperty("标签")
    private String label;


    @TableField("sort")
    @ApiModelProperty("排序")
    private String sort;


    @TableField("sub_begin")
    @ApiModelProperty("截取范围开始")
    private String subBegin;


    @TableField("sub_end")
    @ApiModelProperty("截取结束")
    private String subEnd;


    @TableField("del_flag")
    @ApiModelProperty(" 删除标识  0：未删除 1：删除")
    private Integer delFlag;



    @TableField("updater")
    @ApiModelProperty("更新者")
    private Long updater;


    @TableField("update_date")
    @ApiModelProperty("更新时间")
    private Date updateDate;

    @TableField(exist = false)
    @ApiModelProperty("前端显示规则名称")
    private String rule;

    @ApiModelProperty("全宗名称")
    @TableField(exist = false)
    private String generalArchiveInfoName;

}
